// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
// import App from './App'

Vue.config.productionTip = false

/* eslint-disable no-new */
Vue.component("com", {
  props:['content'],
  data:function(){
    return {
      description:this.content,
      name:"lauwen"
    }
  },
  template:"<b @click='upData'>{{name}}:{{description}}</b>",
  methods:{
    upData:function(){
      this.$emit("reciverup", this.name);
    }
  }
});
Vue.component("pro", {
  props:{
    prop:{
      type:String,
      required:true,
      default:"Xwen",
      validator:function(value){
        return (value.length>5)
      }
    }
  },
  template:"<p>{{prop}}</p>"
});
Vue.component("cli", {
  template:"<b>hello</b>",
})
new Vue({
  el: '#app',
  data:{
    con:"hello"
  },
  methods:{
    getup:function(nna){
      alert(nna);
    },
    hell:function(){
      alert("hello");
    }
  }
})
